import request from '@/utils/request'

// 查询物料维护列表
export function listMaterialmaintenance(query) {
  return request({
    url: '/gyl/materialmaintenance/list',
    method: 'get',
    params: query
  })
}

// 查询物料维护详细
export function getMaterialmaintenance(id) {
  return request({
    url: '/gyl/materialmaintenance/' + id,
    method: 'get'
  })
}

// 新增物料维护
export function addMaterialmaintenance(data) {
  return request({
    url: '/gyl/materialmaintenance',
    method: 'post',
    data: data
  })
}

// 修改物料维护
export function updateMaterialmaintenance(data) {
  return request({
    url: '/gyl/materialmaintenance',
    method: 'put',
    data: data
  })
}

// 删除物料维护
export function delMaterialmaintenance(id) {
  return request({
    url: '/gyl/materialmaintenance/' + id,
    method: 'delete'
  })
}
//修改某一列数据
export function PutMaterialmaintenance(data){
  return request({
    url:'/gyl/materialmaintenance/editByIds',
    method:'put',
    data:data
  })
}
